package Utils
{
	import flash.text.TextField;
	import flash.text.TextFormat;
	import flash.text.TextFieldType;

	/**
	 * 工具类
	 * @author xiezhicheng
	 */
	public class Utils
	{
		public function Utils()
		{
		}


		/**
		 * 设置字体属性
		 * @param text
		 * @param textField
		 * @param propertie
		 * @param glowColor
		 */
		public static function getTextField(text:String, textField:TextField=null, propertie:Object=null, glowColor:uint=0x000000)
		{
			if (!textField)
				return;

			textField.defaultTextFormat=new TextFormat("宋体", 12, 0xFF0000);
			//textField.filters = glow000000;
			textField.type=TextFieldType.DYNAMIC;
		//	setPropertie(textField, propertie);
			textField.text=text;
			return textField;
		}
	}
}
